<template>
	<view class="zjy-card-form mt-16 mb-24">
		<view class="zjy-card-title mb-32">订单信息</view>
		<zjy-info-item title="订单编号" :value="orderDetail.id" :copy="true" />
		<zjy-info-item title="下单时间" :value="orderDetail.paid_time" />
		<view class="card-line mb-28"></view>
		<zjy-info-item title="购买数量" :value="orderDetail.net_quantity" />
		<zjy-info-item title="订单金额" :value="'&yen;' + priceInCent(orderDetail.net_amount_in_cent)" />
		<zjy-info-item title="付款方式" :value="orderDetail.payment_config_name" gap="0" />
	</view>
</template>
<script setup lang="ts">
import { priceInCent } from "@/mixins/mixins"

const props = defineProps({
	orderDetail: {
		type: Object,
		default: () => ({}),
	},
})
</script>
